package br.ufc.vv.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import br.ufc.vv.dao.DaoFactory;
import br.ufc.vv.model.ProcessoVotacao;

public class CmdGerarRelatorio implements Comando{

	@Override
	public String executar(HttpServletRequest request,
			HttpServletResponse response) {
		HttpSession session = request.getSession();
		ProcessoVotacao pv = (ProcessoVotacao) session.getAttribute("votacao");
		try{
		//	DaoFactory.gerarRelatoriosEleicoesAtual(pv, pv.getUsuarios());
		}catch (Exception e) {
			e.printStackTrace();
		}
		
		return "tela_listarVotacoes.jsp";
	}

}
